Skip to content

fix(digest): prefix every observation block with [account] tag - #592

Merged
Pigbibi merged 1 commit into
mainfrom
rebuild/digest-account-block-tag
Oct 9, 2026
Merged

Pigbibi merged 1 commit into
mainfrom
rebuild/digest-account-block-tag

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Every observation block title is prefixed with [account] (zh + en).
  • Label preference: account_hint → target_id → short opaque_account_uid.
  • Schwab live uses [schwab-primary]; IBKR keeps [U16608560].
  • Does not re-add 窗口/通道 lines.
  • Unit tests cover single + multi + preference order.

After (zh single)

📡 量化哨兵 · 心跳
业务日: 2026-10-09
[schwab-primary] 💓 【心跳检测】
🧭 策略: 半导体趋势收益
💰 账户总权益: USD 989.34
✅ 无需调仓
平台: schwab

After (zh multi)

[schwab-primary] 💓 【心跳检测】
…
平台: schwab

[U16608560] 💓 【心跳检测】
…
平台: ibkr

Test plan

  • unittest daily_digest_notify
  • CI green
  • Dry-run Daily Digest Notify (no live Telegram)

No CloudAgent. No live Telegram. No invented equity. No LB-HK/Firstrade Environment changes.

Prefer account_hint, then target_id (e.g. schwab-primary), then a short
opaque_account_uid form. Keeps window/channel lines omitted. Update zh/en
tests and docs so single and multi blocks always show the bracket tag.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant